#include <iostream>
#include <stdio.h>

using namespace std;

struct s{
    int a;
    int b;
    int c;
    
    int sum(){
        return b+c;
    }
    int sum2(){
        return 0.7*b+0.3*c;
    }
    
}d[1000000];
int n;
int main() {
    cin >> n;
    for(int i = 0; i < n; i++){
        scanf("%d %d %d",&d[i].a,&d[i].b,&d[i].c);
    }
    for(int i = 0; i < n; i++){
        if((d[i].sum() > 140) && (d[i].sum2() >= 80)){
            cout << "Excellent" << endl;
        }
        else{
            cout << "Not excellent" << endl;
        }
    }
    return 0;
}
